<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>简单组件</title>
		<script src="lib/react/react.development.js"></script>
		<script src="lib/react/react-dom.development.js"></script>
		<script src="lib/babel.min.js"></script>
	</head>
	<body>
		<div id="hello-example"></div>
		<script type="text/babel">
			class HelloMessage extends React.Component {
				render() {
					return <div>Hello {this.props.name}</div>;
				}
			}

			ReactDOM.render(
				<HelloMessage name="Taylor" />,
				document.getElementById("hello-example")
			);
		</script>
	</body>
</html>
